package com.tg.demo.web;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * DAController
 *
 * @author yuanjin
 * @date 2019/3/29
 */
@Controller
@Slf4j
@RequestMapping("/DA")
public class DAController {

    /**
     * 跳转到列表页
     *
     * @param model the model
     * @return string string
     */
    @RequestMapping(value = "/life", method = {RequestMethod.GET, RequestMethod.POST})
    public String lifeDA(Model model) {
        return "/DA/life";
    }

    /**
     * 跳转到列表页
     *
     * @param model the model
     * @return string string
     */
    @RequestMapping(value = "/study", method = {RequestMethod.GET, RequestMethod.POST})
    public String studyDA(Model model) {
        return "/DA/study";
    }
}
